package tchk.xyz.lingyuntutorminiprogram.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 钱包流水表
 * wallet_transaction
 */
@Data
public class WalletTransaction implements Serializable {
    /**
     * 流水ID
     */
    private Long id;

    /**
     * 关联的用户ID
     */
    private Long userId;

    /**
     * 变动金额 (正数表示收入, 负数表示支出)
     */
    private BigDecimal amount;

    /**
     * 变动后余额
     */
    private BigDecimal balanceAfter;

    /**
     * 类型 (recharge, payment, income, withdrawal, refund)
     */
    private String type;

    /**
     * 关联ID (如订单号)
     */
    private String relatedId;

    /**
     * 描述
     */
    private String description;

    /**
     * 创建时间
     */
    private Date createTime;

}